import request from '@/utils/request'
import type { LoginData } from './type'

export const login = (data: LoginData) => {
  return request({
    url: '/api/user/login',
    method: 'post',
    data
  })
}
